from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name='index'),
    path('recipe/<int:recipe_id>/', views.recipe_detail, name='recipe_detail'),
    path('recipe/<int:recipe_id>/edit/', views.edit_recipe, name='edit_recipe'),
    path('recipe/delete/<int:recipe_id>/', views.delete_recipe, name='delete_recipe'),
    path('add/', views.add_recipe, name='add_recipe'),
    path('made/<int:recipe_id>/', views.increase_made_count, name='increase_made_count'),
    # tags
    path('tags/', views.manage_tags, name='manage_tags'),
    path('tags/delete/<int:tag_id>/', views.delete_tag, name='delete_tag'),
    path('tags/<int:tag_id>/edit', views.edit_tag, name='edit_tag'),
    # categories
    path('categories/', views.manage_categories, name='manage_categories'),
    path('categories/delete/<int:category_id>/', views.delete_category, name='delete_category'),
    path('categories/<int:category_id>/edit', views.edit_category, name='edit_category'),
    # images
    path('image/delete/<int:image_id>/', views.delete_image, name='delete_image'),
    # suggest
    path('suggest/', views.suggest_recipe, name='suggest_recipe'),
]
